package com.lcf.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户表(User)表实体类
 *
 * @author lcf
 * @since 2025-02-19 13:27:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class SysUser extends Model<SysUser> {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    //openId
    private String openId;
    //姓名
    private String name;
    //头像
    private String headUrl;
    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;

    public SysUser(String openId, String name) {
        this.openId = openId;
        this.name = name;
    }
}

